{% extends 'learing_logs/base.html' %}
{% block header %}
    
{% endblock header%}

{% block content %}
    <div class="panel panel-default" >
        <div class="panel panel-heading">
            <h5>{{ blog.title }}</h5>
            <h6>{{ blog.date_added|date:'Y-m-d H:i:s' }}</h6>
        </div>           
        <div class="panel panel-body">
            {{ blog.content }}
        </div>
        <div class="panel-footer">
            {% for tag in blog.tag_arr %}
                <a href="">{{tag}}</a>
            {% endfor %}
        </div>
    </div>
    <h6>
        <a href="{% url 'learing_logs:edit_blog' blog.id  %}" class="btn btn-primary" >编辑</a>
        <a href="{% url 'learing_logs:new_blog' %}" class="btn btn-primary">再写一篇</a>
    </h6>
{% endblock content %}